package com.zg.scf.domain.convert;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zg.common.core.dao.scf.entity.RailwayPlan;
import com.zg.scf.domain.vo.RailwayPlanVo;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/7/9 18:15
 */
@Mapper(componentModel = "spring")
public interface RailwayPlanConvert {

    RailwayPlanVo toVo(RailwayPlan apiService);



    List<RailwayPlanVo> toVoList(List<RailwayPlan> users);



    default IPage<RailwayPlanVo> toVoPage(Page<RailwayPlan> userPage) {
        return userPage.convert(this::toVo);
    }
}
